import React,{Component,Fragment} from 'react';
import {
  initCas,
  cookie,
  CasContext,
  checkCookieTicket,
  checkUrlTicket
} from 'ystec-cas';
initCas({
  type:'{{type}}',
  action:'{{&action}}',
  host:'{{&host}}',
  {{#cookie}}
  cookie:{
    {{#path}}path:'{{&path}}',{{/path}}
    {{#domain}}domain:'{{domain}}',{{/domain}}
  },
  {{/cookie}}
  {{#uri}}
  uri:{
    {{#login}}login:'{{&login}}',{{/login}}
    {{#logout}}logout:'{{&logout}}',{{/logout}}
    {{#soc}}soc:'{{&soc}}',{{/soc}}
  },
  {{/uri}}
  exclude:[{{#exclude}}'{{&.}}',{{/exclude}}],
  {{#redirect}}redirect:'{{&redirect}}',{{/redirect}}
})

